package team.hyznrj.studentsys.dao.repository.account;

import org.springframework.data.jpa.repository.JpaRepository;
import team.hyznrj.studentsys.entity.account.PowerFunctionTable;
import team.hyznrj.studentsys.entity.account.key.PowerFunctionTableKey;

import java.util.List;

/**
 * @author ReMidDream
 * @date 2018-05-07 14:13
 **/
public interface PowerFunctionTableRepository extends JpaRepository<PowerFunctionTable,PowerFunctionTableKey> {

    void deleteByIdPftPowerId(String powerId);

    List<PowerFunctionTable> findByIdPftPowerId(String powerId);

    List<PowerFunctionTable> findByIdPftFunctionId(String functionId);

}
